package com.example.parkdemo.adapter

import android.graphics.Color
import android.widget.ImageView
import com.bumptech.glide.Glide
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.example.base.user.CarColorBeanItem
import com.example.parkdemo.R

class CarColorAdapter : BaseQuickAdapter<CarColorBeanItem, BaseViewHolder>(R.layout.item_colot) {
    override fun convert(holder: BaseViewHolder, item: CarColorBeanItem) {
        holder.setBackgroundColor(R.id.car_color_image, Color.parseColor(item.colorValue))
    }
}